package cn.itsource.pethome.query;

import lombok.Data;

@Data
public class BaseQuery {

    private Integer pageNo = 1;
    private Integer pageSize = 10;
    private String orderField = "id";
    private String orderType = "DESC";


    public Integer getStartIndex(){
        return (pageNo - 1) * pageSize;
    }
}
